import java.util.Scanner;

public class Task2_1_02 {
    public static void main(String[] args) {
        System.out.println("请第一个数：");
        Scanner sc1 = new Scanner(System.in);
        int num1 = sc1.nextInt();
        System.out.println("请第二个数：");
        Scanner sc2 = new Scanner(System.in);
        int num2 = sc2.nextInt();
        System.out.println("请第三个数：");
        Scanner sc3 = new Scanner(System.in);
        int num3 = sc3.nextInt();
        int i = (num1 > num2 ? num1 : num2) > num3 ? (num1 > num2 ? num1 : num2) : num3;
        System.out.println("最大值：" + i);
    }
}
